package com.nian.images.api;

import com.nian.common.model.Const;
import com.nian.common.model.ServerResponse;
import com.nian.common.model.SysMessage;
import com.nian.images.model.ImagesApp;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/3/31 0031 20:39
 */
@RestController
public class ImagesAppAPIHystrix implements ImagesAppAPI{

    @Override
    public ServerResponse<List<ImagesApp>> getUrls(Integer imagesType, String imagesIds) {
        return ServerResponse.createByErrorCodeMessage(Const.CODE_500, SysMessage.FAIL_MESSAGE);
    }

    @Override
    public ServerResponse<ImagesApp> getUrl(Integer imagesType, Long imagesId) {
        return ServerResponse.createByErrorCodeMessage(Const.CODE_500, SysMessage.FAIL_MESSAGE);
    }

    @Override
    public ImagesApp getImage(Integer imagesType, Long imagesId) {
        return null;
    }

    @Override
    public List<ImagesApp> list(Integer imagesType, String imagesIds) {
        return null;
    }
}
